package study.spring.core.ioc._4_import_annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@ComponentScan("study.spring.core.ioc._4_import_annotation")
@Import(ImportSelectorImpl.class)
public class UseAtImportAnnotation {

  public static void main(String[] args) {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(UseAtImportAnnotation.class);
    String[] beanDefinitionNames = context.getBeanDefinitionNames();
    for (String name : beanDefinitionNames){
      System.out.println(name);
    }
  }
}
